import http from '@/utils/http'
// 商加入购物车
export function postMemberCartAPI (data) {
  return http({
    method: 'POST',
    url: '/member/cart',
    data
  })
}
// 获取购物车商品列表
export function getMemberCartAPI () {
  return http({
    url: '/member/cart'
  })
}
// 修改购物车商品状态
export function putMembercartAPI (skuId, data) {
  return http({
    method: 'PUT',
    url: `/member/cart/` + skuId,
    data
  })
}
// 购物车商品全选/取消全选
export function putMemberCartselectedAPI (data) {
  return http({
    method: 'PUT',
    url: '/member/cart/selected',
    data
  })
}
// 删除/清空购物车单品
export function delMemberCartAPI (data) {
  return http({
    method: 'DELETE',
    url: '/member/cart',
    data
  })
}
